<?php
/**
 * Created by Zhy
 * User: Zhy
 * Date: 2024/2/26
 * Time: 9:44
 */

namespace app\api\model;

class GoodsAttr extends Base
{
    protected $hidden = ['attr_status', 'attr_sort', 'attr_time', 'attr_update_time'];

    /**
     * 多条查询
     * @return bool|\PDOStatement|string|\think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    static function selectData(){
        return self::where('attr_status', 1)->order('attr_sort desc')->select();
    }
}